"""
Generating data for SRNet
Copyright (c) 2019 Netease Youdao Information Technology Co.,Ltd.
Licensed under the GPL License (see LICENSE for details)
Written by Yu Qian
"""

import os
import cv2
import cfg
from Synthtext.gen import datagen, multiprocess_datagen
import datetime
from time import time

def makedirs(path):
    if not os.path.exists(path):
        os.makedirs(path)

def main():
    img_dir=os.path.join(cfg.data_dir, 'train713')
    f=open(os.path.join(cfg.data_dir,'train713.txt'),encoding='utf8',mode='a')

    makedirs(img_dir)


    gen=datagen()
    i_t, i_s, t_sk, t_t, t_b, t_f, surf2,text1,text2=gen.gen_srnet_data_with_background()
    

if __name__ == '__main__':
    main()
